@extends('layouts.home')
@section('content')
		<section>
			<h1 class="new-contit font30">{{ $data->art_title }}</h1>
			<span class="font18 new-contime">时间：<?php echo date('Y-m-d', $data->art_time);?> &nbsp;&nbsp; 发布者：{{$data->art_editor}}</span>
			<span class="new-picwrap">
				<img src="/{{ $data->art_thumb }}" alt="" />
			</span>
			<div class="new-textwrap font24">
				<p class="new-textitem fontcolor-60">
					{!! $data->art_content !!}
				</p>
			</div>
			<div class="page-wrap">
				@if($article['next'])
					<a href="{{url('new/'.$article['next']->art_id)}}" class=" page-item page-prev fontcolor-40 font24">下一篇：{{ $article['next']->art_title }}</a>
				@else
					<span class=" page-item page-prev fontcolor-40 font24">下一篇：没有下一篇了</span>
				@endif
				@if($article['pre'])
					<a href="{{url('new/'.$article['pre']->art_id)}}" class=" page-item page-next fontcolor-40 font24">上一篇：{{ $article['pre']->art_title }}</a>
				@else
					<span class=" page-item page-prev fontcolor-40 font24">上一篇：没有上一篇了</span>
				@endif
			</div>
		</section>
		
@endsection
